package com.mxl.common.rule;

public abstract class AbstractAction extends AbstractComponent {

	public abstract void doExecute(Object obj) throws Exception;

	public void execute(Object arg) throws Exception {
		doExecute(arg);
		if (nextStep != null)
			nextStep.execute(arg);
	}

	public AbstractComponent getNextStep() {
		return nextStep;
	}

	public void setNextStep(AbstractComponent nextStep) {
		this.nextStep = nextStep;
	}

	private AbstractComponent nextStep;
}